package com.md.zy;

public class Demo5 {

	public static void main(String[] args) {
		int arr[] = {19, 28, 37, 46, 50};
		int[] newArr=newArr(arr);
		for (int i = 0; i < newArr.length; i++) {
			System.out.print(newArr[i]+" ");
		}

	}
	public static int[] newArr(int arr[]){
		int[] newArr=new int[5];
		int a=arr.length-1;
		for (int i = 0; i < arr.length; i++) {
			newArr[i]=arr[a];
			a--;
		}
		return newArr;
	}

}
